public class BoarHunter extends Worker {
	int jobs;

	private BoarHunter(Storage putStorage, int workTime, int jobs) {
		super(null, putStorage, workTime);
		this.jobs = jobs;
	}
	
	@Override
	public boolean get() {
		if (this.jobs > 0) {
			this.jobs--;
			return true;
		}
		this.putStorage.removePutter();
		this.stop();
		return false;
	}
	
	public static BoarHunter createBoarHunter(ColdStorage putStorage, int workTime, int jobs) {
		return new BoarHunter(putStorage, workTime, jobs);
	}

}
